#include "Pisica.h"
#include <string>
#include <cstdio>
#include <iostream>
#include <ctime> 


Pisica::Pisica(){
  //srand(time(NULL));
  ageLimit=240;
  age=0;
  sex=Gender(rand()%2+1);
long k=rand();
  culoareBlana = colors[k%6];
  ID=k%1000;


}

void Pisica::print(){
	string whatSex;
	if(sex==1)
		whatSex="Male";
	else 
		whatSex="Female";
  std::cout<<"Pisica"<<ID<<" "<<culoareBlana<<" "<<whatSex<<std::endl;
}

Pisica* Pisica::giveBirth(){
	if(sex!=Gender(1))
   return new Pisica();
	else {print();
		cout<<"can't give birth !!"<<endl;
	}
return NULL;
}

